﻿@model Jb.Web.ViewModels.UtilityModels.ListConfig
@using Jb.Web.Utility;
@{    
	String pageTitle = "Package List";
    ViewBag.Title = Html.GetPageTitle(pageTitle);
	String editUrlFormat = Url.AdminUrl("Edit", "Package") + "/{0}";
	///Bind Package ListConfig
	///Following ListConfig binding needs to be edited according to the query result and need.
	Jb.Web.ViewModels.UtilityModels.ListConfig _ListConfig = Jb.Web.ViewModels.UtilityModels.ListConfig.Build(
        @"Basic Info {Name|Price|Last Modified}
		, Package Info {Can Post Jobs|Can Download Resume|Duration}		
		, Status {IsActive|Active Subscribers|InActive Subscribers}" //, History {Created|Modified}"		
        , Model.DataSource, true, editUrlFormat);
        
    _ListConfig.ShowFieldName = true;
    _ListConfig.MakeFieldNameBold = false;
        
    ViewData[AppConstants.ViewDataKeys.SELECTED_MENU] = AdminMenu.ManagePackage; 
}
<div class="jb-page-heading">
    <h1>@pageTitle</h1>
    <div>
        Add/Edit and manage Packages.
    </div>
</div>
<div class="jb-page-content">    
    <a href="@Url.AdminUrl("Edit", "Package")">Add New Package</a>
    @Html.Partial("_ListView", _ListConfig)
    @if (Model.Pager != null)
    {    
        @Html.Partial("_Pager", Model.Pager)
    }
</div>

    


